<?php

/**
 * @author NgAnh
 * @copyright 2013
 */
class Typemodel extends CI_Model {
    var $type_id; //sid
    var $type_name;  //rsid
    var $view_order;    //stid
    var $is_deleted;   //sname
    var $created_by_user_id;    //userid
    var $created_on_date;   //date
    var $last_modified_by_user_id;  //userid
    var $last_modified_on_date; //date
    
    function __construct()
    {
        // Call the Model constructor
        $this->load->database();
    }
    //Get surveys list
    function get_all()
    {
        $query = $this->db->get_where('sur_type',array('is_deleted' => false));
        return $query->result_array();
    }
}
?>